package experiment_4;

import java.util.*;

public class Laboratory {
	Scanner input = new Scanner(System.in);
	public static String[] fen = new String[16];

	public void dafen(String[] arr) {
		int c = 0;
		for (int j = 1; j <= 4; j++) {
			for (int i = 0; i < arr.length; i++) {

				System.out.println("第" + j + "周" + arr[i] + "评分为（A/B/C）");
				try {
					String a = input.next();

					if (a.equals("A") || a.equals("B") || a.equals("C")) {

						fen[c] = a;
						c++;
					} else {
						System.out.println("输入错误");
						i--;
					}

				} catch (Exception e) {
					System.out.println("有错误");
				}
			}
		}

	}

	public void shuchu() {
		System.out.print("这周评分为：");
		for (int i = 0; i < fen.length; i++) {
			System.out.print(fen[i] + "   ");
		}
	}
}
